Skip to content

feat: 新增輸入表單的核心元件#124

Open
wendyyuchensun wants to merge 3 commits intocoseeing:mainfrom
wendyyuchensun:v2-7-input
Open

feat: 新增輸入表單的核心元件#124
wendyyuchensun wants to merge 3 commits intocoseeing:mainfrom
wendyyuchensun:v2-7-input

Conversation

@wendyyuchensun
Copy link
Copy Markdown
Collaborator

@wendyyuchensun wendyyuchensun commented Apr 6, 2026

摘要

新增輸入表單的核心元件,供日後 exports/iframe/image input modal 可以共用:

  • 新增 TextInput 核心元件,統一輸入框樣式,支援 label、hint、錯誤訊息及 disabled 狀態
  • 新增 RadioGroup 核心元件,支援:
    • options 陣列管理選項,每個選項可獨立設定 disabled
    • 未選取時圓圈顯示 gray-400、選取時顯示主色;停用時顯示 gray-200
    • Focus ring 環繞整個 radio + 文字區域(figma

其他

  • 重構 LinkInputModal,以 TextInputRadioGroup 取代原有的 inline 表單元素
  • 新增 LinkInputModal 必填欄位驗證:當 user 點選「確認」時,若「顯示文字」與「URL」兩個欄位為空,顯示錯誤訊息

@wendyyuchensun wendyyuchensun changed the title V2 7 input feat: 新增輸入表單的核心元件 Apr 6, 2026
@wendyyuchensun wendyyuchensun marked this pull request as ready for review April 6, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant